<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
	<%@ include file="../../include/easyui.jsp" %>
  <meta charset="utf-8">
  <title>工程结算审核定单</title>
   <link rel="stylesheet" href="/plug-in/layui/css/layui.css" media="all"> 
  <link rel="shortcut icon" href="/images/Logo_xx.jpg" type="image/x-icon"/>
  <style type="text/css">
   </style> 
</head>
<body style="padding: 5px;">
	<table style="width:1200px;margin: 5px;" border="1">
		<tr>
		  <th colspan="14"><h1>工程结算审核定单</h1></th>
		</tr>
		<tr>
		  <th colspan="2">建设单位</th>
		  <th  colspan="3">${contract.partB}</th>
		  <th  colspan="2">结算单编制日期</th>
		  <th colspan="2">${tableTime}</th>
		  <th>合同编号</th>
		  <th colspan="4">${contract.contractNo}</th>
		</tr>
		<tr>
		  <th colspan="2">总包单位（甲方）</th>
		  <th  colspan="3">${contract.mainUnit}</th>
		  <th  colspan="2">编制人</th>
		  <th colspan="2">${SESSION_USER.user.nickName}</th>
		  <th>联系电话</th>
		  <th colspan="4">${SESSION_USER.user.mobile}</th>
		</tr>
		<tr>
		  <th colspan="2" rowspan="3">分包单位（乙方）</th>
		  <th  colspan="3" rowspan="3">${contract.assistUnit}</th>
		  <th  colspan="2">联系人</th>
		  <th colspan="2">${unit.linkMan}</th>
		  <th>联系电话</th>
		  <th colspan="4">${unit.linkPhone}</th>
		</tr>
		<tr>
		  <th colspan="2" rowspan="2">收款人姓名</th>
		  <th  colspan="2" rowspan="2">${unit.payee}</th>
		  <th>收款人账号</th>
		  <th  colspan="4">${unit.accountPayee}</th>
		</tr>
		<tr>
		  <th>开户行</th>
		  <th colspan="4">${unit.bank}</th>
		</tr>
		<tr>
		  <th rowspan="2">序号</th>
		  <th rowspan="2">区域</th>
		  <th rowspan="2">工程名称</th>
		  <th rowspan="2">总包合同金额</th>
		  <th rowspan="2">总包审计金额</th>
		  <th rowspan="2">总包开票日期</th>
		  <th rowspan="2">总包开票金额</th>
		  <th rowspan="2">本次收款日期</th>
		  <th rowspan="2">本次收款金额</th>
		  <th>分摊施工费</th>
		  <th>管理费</th>
		  <th rowspan="2">已支付金额</th>
		  <th rowspan="2">本次支付施工费(乙方)</th>
		  <th rowspan="2">结算类别</th>
		</tr>
		<tr>
		  <th>收款金额的98%</th>
		  <th>收款金额的2%</th>
		</tr>
		<!-- 数据行开始 -->
		<tr id="dataRow">
			 <td style="text-align: center;">1</td>
			 <td></td>
			 <td></td>
			 <td></td>
			 <td></td>
			 <td></td>
			 <td></td>
			 <td></td>
			 <td></td>
			 <td></td>
			 <td></td>
			 <td></td>
			 <td></td>
			 <td></td>
		</tr>
		<!-- 数据行结束 -->
		<tr id="totalRow">
		  <td colspan="3" style="text-align: center;">合计</td>
		  <td></td>
		  <td></td>
		  <td></td>
		  <td></td>
		  <td></td>
		  <td></td>
		  <td></td>
		  <td></td>
		  <td></td>
		  <td></td>
		  <td></td>
		</tr>
		<tr>
		  <td colspan="3" style="text-align: center;">应付劳务费金额大写</td>
		  <td colspan="11" >-</td>
		</tr>
		<tr style="height: 50px;">
		  <td colspan="3" style="text-align: center;">备注：</td>
		  <td colspan="11" >
		  	<textarea rows="4" cols="" style="width: 100%;overflow: hidden;border: 0;">本项目有陈玲负责施工(宁波万河通讯工程有限公司)，已回款138000元，本次收取施工费部分2%管理费合计为2761元，应支付给分包方金额为135240元。</textarea>
		  	</td>
		</tr>
		<tr style="height:100px;">
		  <td colspan="3" style="text-align: center;">分包单位(盖章/签字)：</td>
		  <td colspan="2">项目部(签字)：</td>
		  <td colspan="2">大区领导(签字)：</td>
		  <td colspan="2">工程事业部(签字)：</td>
		  <td colspan="2">财务部(签字)：</td>
		  <td colspan="3">总经理(签字)：</td>
		</tr>
		<tr>
		  <td colspan="3">日期：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;日</td>
		  <td colspan="2">日期：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;日</td>
		  <td colspan="2">日期：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;日</td>
		  <td colspan="2">日期：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;日</td>
		  <td colspan="2">日期：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;日</td>
		  <td colspan="3">日期：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;日</td>
		</tr>
	</table>
	<p> 备注：</p>
	<p> 1.需提供附件a)分包合同关键页，关于结算方式 b)进项发票 c)审定单</p>
	<p> 2.分包单位为公司必须敲公章与签字，如是个人施工队只需施工队长签字</p>
<script>
$(function(){
	var projectJson = $.parseJSON('${projectJson}') || [];
  	var html = [];
  	$.each(projectJson, function(i,item) {
  		html.push('<tr>');
  		html.push('<td style="text-align: center;">'+ (++i) +'</td>');
  		html.push('<td>'+ item.department +'</td>');
  		html.push('<td>'+ item.pName+'</td>');
  		html.push('<td>-</td>');
  		html.push('<td>-</td>');
  		html.push('<td>-</td>');
  		html.push('<td>-</td>');
  		html.push('<td>-</td>');
  		html.push('<td>-</td>');
  		html.push('<td>-</td>');
  		html.push('<td>-</td>');
  		html.push('<td>-</td>');
  		html.push('<td>-</td>');
  		html.push('<td>全款</td>');
  		html.push('</tr>');
	});
  	html = html.join('');
  	$(html).insertAfter($("#dataRow"));
  	if(html!=''){
	  	$("#dataRow").remove();
  	}
	
});
</script>
</body>
</html>